package org.kzwl.service.web;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.kzwl.comm.pojo.ResponseData;
import org.kzwl.comm.pojo.bo.AdminBO;
import org.kzwl.comm.pojo.bo.DeleteAdminBO;
import org.kzwl.comm.pojo.bo.LoginAdminBO;
import org.kzwl.comm.pojo.bo.QueryAdminBO;
import org.kzwl.entity.web.Admin;

public interface AdminService extends IService<Admin> {

    /**
     * 后台管理员登录
     * @param loginAdminBO
     * @return
     */
    ResponseData<String> login(LoginAdminBO loginAdminBO);

    ResponseData<Void> saveIn(AdminBO adminBO);

    ResponseData<IPage<Admin>> queryPage(QueryAdminBO queryAdminBO);

    ResponseData<Void> deleteById(DeleteAdminBO deleteAdminBO);
}
